package com.unionpay.mpds.dialect;

import java.sql.Types;

import org.hibernate.Hibernate;
import org.hibernate.dialect.MySQLDialect;
import org.hibernate.dialect.function.StandardSQLFunction;
/**
 * 增加group_concat函数，不建议大量使用
 * @author Administrator
 *
 */
public class AyuMySqlDialect extends MySQLDialect {
	protected void registerVarcharTypes() {
		   registerFunction("group_concat", new StandardSQLFunction("group_concat",Hibernate.STRING));
		   registerHibernateType(Types.LONGVARBINARY, Hibernate.BLOB.getName());
		}
	public AyuMySqlDialect(){
		super();
	}
}
